package com.hzyl.famousreader.view.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.umeng.analytics.MobclickAgent;

public class BaseActivity extends AppCompatActivity {

  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    //int colorId = SPUtils.getInstance().getInt(Constant.SP_THEME_COLOR, -16714876);
    //BarUtils.setStatusBarColor(this, colorId, 0);
  }

  @Override
  protected void onPause() {
    super.onPause();
    MobclickAgent.onPageEnd("BaseActivity");
    MobclickAgent.onPause(this);
  }

  @Override
  protected void onResume() {
    super.onResume();
    MobclickAgent.onPageStart("BaseActivity");
    MobclickAgent.onResume(this);
  }
}
